package com.springboot.auth.authorization.entity.param;

import com.springboot.auth.authorization.entity.po.Logininfo;
import com.springboot.cloud.common.web.entity.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Past;
import java.util.Date;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LogininfoQueryParam extends BaseParam<Logininfo> {
    private String account;
    private String ipaddr;
    private String loginLocation;
    private int orderNum;
    private String browser;
    private String os;
    private String status;
    private String msg;
    private Data loginTime;
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    @Past(message = "查询开始时间必须小于当前日期")
    @ApiModelProperty(value = "查询开始时间")
    private Date createdTimeStart;
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    @Past(message = "查询结束时间必须小于当前日期")
    @ApiModelProperty(value = "查询结束时间")
    private Date createdTimeEnd;
}
